package com.flowCloud.util.page;

import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 计算分页工具类
 */
@Data
public class PageUtils implements Serializable{
    private static final long serialVersionUID = -1202716581589799959L;

    //  当前页数
    private int page;

    //  每页记录数
    private int limit;

    /**
     * 分页
     */
    public PageUtils(int page, int limits) {
        this.page =  (page -1)*limits;
        this.limit = limits;
    }

}
